package com.example.teesystem.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.Date;

import com.example.teesystem.entity.vo.advancedTrain.AdTrainProgressUploadVo;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.beans.BeanUtils;

/**
 *
 * @TableName t_advanced_training_progress
 */
@TableName(value ="t_advanced_training_progress")
@Data
@NoArgsConstructor
public class AdvancedTrainingProgress implements Serializable {
    /**
     * key自增
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 学生id
     */
    @TableField(value = "student_id")
    private Integer studentId;

    /**
     * 进阶训练 id
     */
    @TableField(value = "advanced_training_id")
    private Integer advancedTrainingId;

    /**
     * 上传时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    @TableField(value = "course_id")
    private Integer courseId;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
    
    public AdvancedTrainingProgress(AdTrainProgressUploadVo uploadVo) {
        BeanUtils.copyProperties(uploadVo, this);
    }
}
